package com.tyersoft.kickcalendar.adapters;

import com.tyersoft.kickcalendar.calendar.CalendarUtility;

import android.content.Context;

public class ContextListAdapter extends ListAdapter {

	public ContextListAdapter(Context context, int resource) {
		super(context, resource);
	}

	@Override
	void fill() {
		for (int i = 0; i < CalendarUtility.AllEvents.size(); i++) 
			if (! CalendarUtility.AllEvents.get(i).context.isEmpty() )
				if (getPos(CalendarUtility.AllEvents.get(i).context) < 0)
					add(CalendarUtility.AllEvents.get(i).context);
	}

}
